<div style="min-height: 282px">
    <ul class="list">
        <?php if(count($pending_requests)): ?>
        <?php foreach($pending_requests as $pending_request):?>        
        <li>
            <div class="list_main_container">
                <img src="<?php echo $pending_request->sender->user_profile->photo->path(false,'mini_square');?>" alt="<?php echo $pending_request->sender->user_profile->name.' '.$pending_request->sender->user_profile->surname ?>"/>
                <div class="list_user_link"><a href="/desktop/<?php echo $pending_request->sender->user_profile->url ?>" class="desktop_link" title="<?php echo __('show desktop') ?>"></a><a href="/profile/<?php echo $pending_request->sender->user_profile->url ?>" class="profile_link" title="<?php echo __('show profile') ?>"></a></div>
                <div style="width: 230px">
                    <p class="mini_name ellipsis_character"><?php echo $pending_request->sender->user_profile->name.' '.$pending_request->sender->user_profile->surname ?></p>
                    <p class="mini_info ellipsis_word"><?php echo $pending_request->sender->user_profile->description ?></p>
                </div>  
                <div class="list_standard_entre"><?php echo __('send You invitation') ?></div>
                <div style="float: right; margin-right: 5px">
                    <a href="/contact/approve_request/<?php echo $pending_request->id ?>" class="button_blue pending_request"><?php echo __('Confirm')?></a>
                    <a href="/contact/not_approve_request/<?php echo $pending_request->id ?>" class="button_grey pending_request"><?php echo __('Not now')?></a>      
                </div>
                
            </div>
        </li>
        <?php endforeach ?>
        <?php else: ?>
            <li>
                <div class="list_main_container">
                    <div class="list_standard_entre" style="text-align: center; float: none"><?php echo __('no invitations to show') ?></div>                   
                </div>
            </li>
        <?php endif ?>
    </ul>
</div>